import { http } from "@/utils/http";

type Result = {
  success: boolean;
  data: Array<any>;
};

type ResultObj = {
  success: boolean;
  data: any;
};

export const getPhoneCreate = (data?: object) => {
  return http.request<ResultObj>("post", "/v1/dy_chat/admin/phone/create", {
    data
  });
};

export const getPhoneList = (data?: object) => {
  return http.request<ResultObj>("post", "/v1/dy_chat/admin/phone/list", {
    data
  });
};
